#DEBUGGING=-g $(EXTRA_DEBUGGING)
# add -DDEBUG_MEM to turn on memory allocation logging
GBCFLAGS=$(EXTRA_CFLAGS) $(DEBUGGING) -I. -I$(srcdir) \
- $(OPTIMIZATION) @CFLAGS@
+ $(OPTIMIZATION) -DHAVE_CONFIG_H @CFLAGS@
LDFLAGS=$(EXTRA_LDFLAGS) @LDFLAGS@
PREFIX=@prefix@
INSTALL_DIR=$(DESTDIR)/$(PREFIX)
#include <ctype.h>
#include <stdio.h>
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#if HAVE_LIBEXPAT
# include <expat.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#include "queue.h"
#include "gbtypes.h"
#if HAVE_LIBZ
#include <string.h>
#include "defs.h"
-#include "config.h"
#include "garmin_tables.h"
#include "jeeps/gpsmath.h"
#include "strptime.h"
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
-#include "config.h"
#include "defs.h"
#include "cet.h"
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
*/
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#if __WIN32__
#include <stdio.h>
#include <ctype.h>
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#if HAVE_LIBUSB
#include <usb.h>
#include "gps.h"
*/
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
+
#include "../defs.h"
+
#if !HAVE_LIBUSB
const char no_usb[] = "USB support is not available in this build.\n";